<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include   page="common/header.jsp" flush="true">
    <jsp:param name="title" value="权限分配" /> 
</jsp:include>
<!-- 左侧 -->
<jsp:include   page="common/left.jsp" flush="true"/>

         <!-- 右侧 -->
        <div class="allot-edit-page">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="panel">
                            <div class="panel-heading">
                                <div class="row">
                                    <div class="left fl">
                                        <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
                                        <span class="text">管理员权限分配</span>
                                    </div>
                                    <div class="right fr">
                                        <span class="return-icon"></span>
                                        </a>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-body">
                                <form id="" action="" onsubmit="return false">
                                    <div class="name">
                                        <span>角色名称：</span>
                                        <input id="rolename" type="text" placeholder="请输入角色名称" />
                                        <i>*</i>
                                    </div>
                                    <div class="beizhu">
                                        <span>角色备注：</span>
                                        <input id="remark" type="text" placeholder="角色的权限概述" />
                                    </div>
                                    <div class="quanxian">
                                        <span>栏目权限：</span>
                                        <div class="check-wrap">
                                        <div class="quanxian-title">
                                                <span>系统管理员</span>
                                            </div>
                                            	<!-- ------------begin-------------- -->
<!--                                                     	第一层 -->
<%--                                                     <c:if test="${privileg.parent == 1 }"> --%>
												<c:forEach items="${wxPrivilegelist[0].children}" var="admin">
                                            <div class="quanxian-content">
												
														<div class="quanxian-content-item">
	                                                    <div class="quanxian-content-item-title">
	                                                    	 <label for="item1" data-value="${admin.id}"><span>${admin.name}</span></label>
	                                                        <input type="checkbox" id="item1" />
	                                                    </div>
	                                                    <div class="quanxian-content-item-main clearfix">
                                                        <!-- -------------子类-begin------------- -->
                                                     	   <c:forEach items="${admin.children }" var="children">
                                                        
		                                                        <div class="type-item type-item-one">
		                                                            <label for="item1" data-value="${children.id}"><span>${children.name}</span></label>
		                                                            <input type="checkbox" id="item1" />
		                                                        </div>
                                                        </c:forEach>
                                                        <!-- -------------子类-begin------------- -->
                                                    </div>
                                                </div>
                                                </div>
                                                </c:forEach>
                                            	<!-- -------------end------------- -->
<!--                                                 <div class="quanxian-content-item"> -->
<!--                                                     <div class="quanxian-content-item-title"> -->
<%--                                                         <label for="item1"><span>用户管理</span></label> --%>
<!--                                                         <input type="checkbox" id="item1" /> -->
<!--                                                     </div> -->
<!--                                                     <div class="quanxian-content-item-main clearfix"> -->
<!--                                                         <div class="type-item type-item-one"> -->
<%--                                                             <label for="item1" class="checked"><span>栏目1</span></label> --%>
<!--                                                             <input type="checkbox" id="item1" /> -->
<!--                                                         </div> -->
<!--                                                         <div class="type-item type-item-two"> -->
<%--                                                             <label for="item2" class="checked"><span>栏目2</span></label> --%>
<!--                                                             <input type="checkbox" id="item2" /> -->
<!--                                                         </div> -->
<!--                                                         <div class="type-item type-item-three"> -->
<%--                                                             <label for="item3"><span>栏目3</span></label> --%>
<!--                                                             <input type="checkbox" id="item3" /> -->
<!--                                                         </div> -->
<!--                                                     </div> -->
<!--                                                 </div> -->
                                                <!-- ---------- -->
                                            
                                        </div>
                                    </div>
                                    <button id="allot-deit-btn" class="btn btn-success" onclick="test()">提交</button>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

<script type="text/javascript" src="${basePath }/page/js/allot.js"></script>
<!-- 底部 -->
<jsp:include   page="common/bottom.jsp" flush="true"/>

